import QtQuick 2.0
import QtQuick.Controls 2.5
Row {
    property var dUnit: 50

    width: parent.width
    height: dUnit
    property var socketname: "socketname"

    Rectangle{
        id:rectsocketname
        width: dUnit*5
        height: dUnit
        Text{
            anchors.centerIn: parent
            font.pointSize: 10
            text:socketname
        }
    }
    Rectangle{
        width: dUnit*4
        height: dUnit
        Switch{
            id:checkswitch
            //默认管着
            checked: false
            onClicked: {
                //
                console.log("============>>>switch status change")
            }
        }
    }
}
